package com.sinven.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.sinven.pojo.Message;

public interface MessageMapper {
	int AddMessage(Message message);//添加留言
	int DeletedMessage(long m_id);//删除留言
	Message SelectAllMessageBySelf(long m_fromuserId);//查询所有留言
	long SelectMessageCountBySelf(long m_fromuserId);//查询留言数 
	List<Message> SelectMessageByOther(long m_touserId);//
	long SelectAllMessageByOther(long m_touserId);//查询留言数 
	Message SelectOneMessage(long m_id);//按照id查询
}
